package com.mobilekites.ad;

import android.app.Activity;

import com.startapp.android.publish.StartAppAd;

public interface StartApp extends CircleLifeActivity {
	public StartAppAd getStartAppAd();

	public static class StartAppImpl implements StartApp {
		public static final String DEV_ID = "101762757";
		public static final String APP_ID = "201625857";
		Activity mActivity;
		StartAppAd mStartAppAd;

		public StartAppImpl(Activity activity) {
			mActivity = activity;
		}

		/**
		 * Must call after setContentView of activity
		 */
		@Override
		public void onCreate() {
			StartAppAd.init(mActivity, DEV_ID, APP_ID);
			// StartAppSearch.init(mActivity, DEV_ID, APP_ID);
			mStartAppAd = new StartAppAd(mActivity);
		}

		@Override
		public void onStart() {

		}

		@Override
		public void onResume() {
			// mStartAppAd.onResume();
		}

		@Override
		public void onPause() {

		}

		@Override
		public void onStop() {

		}

		@Override
		public void onBackPressed() {

		}

		@Override
		public void onDestroy() {

		}

		@Override
		public StartAppAd getStartAppAd() {
			return mStartAppAd;
		}

	}
}
